home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
kernel
/
net
/
ds5000.md
/
netConfig.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-18
|
1KB
|
43 lines
/*
* netConfig.c --
*
* Machine-type dependent initialization of the network interfaces.
*
* Copyright (C) 1987 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*
*
* $Header: /cdrom/src/kernel/Cvsroot/kernel/net/ds5000.md/netConfig.c,v 1.3 92/06/03 22:48:31 voelker Exp $ SPRITE (Berkeley)
*/
#include <sprite.h>
#include <net.h>
#include <netInt.h>
#include <netLEInt.h>
#include <machAddrs.h>
#include <netDFInt.h>
/*
* Fields are name, unit, slot, virtual flag, vector, and init routine.
* For the ds5000 only the slot and init routine are used.
*/
Net_Interface netConfigInterfaces[] = {
{"LE", 0, (Address) 0, TRUE, -1, NetLEInit},
{"LE", 0, (Address) 1, TRUE, -1, NetLEInit},
{"LE", 0, (Address) 2, TRUE, -1, NetLEInit},
{"LE", 0, (Address) 6, TRUE, -1, NetLEInit},
{"DF", 0, (Address) 0, FALSE, -1, NetDFInit},
{"DF", 0, (Address) 1, FALSE, -1, NetDFInit},
{"DF", 0, (Address) 2, FALSE, -1, NetDFInit},
};
int netNumConfigInterfaces =
sizeof(netConfigInterfaces) / sizeof(Net_Interface);